package com.example.controller;

import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class LoginController {
	@RequestMapping("/loginvalidate")
	public String loginvalidate(@RequestParam("uid") String uid,HttpSession httpSession) {
		System.out.println("---------------------------");
		httpSession.setAttribute("uid", uid);
		return "chatroom";
	}
}
